Saltar al contenido principal
PATCH
[BETA] Update Toppie Campaign

Autorizaciones

Authorization
string
header
requerido

A valid API key generated in Topsort's UI. Use the TSE API key if calling auctions or events API, otherwise use the TSC API key.

Parámetros de ruta

campaign_id
string<uuid>
requerido

The ID of the campaign.

Cuerpo

application/json

Agency campaign fields to be updated

name
string | null

Campaign name, this will be propagated to campaigns in marketplaces

Required string length: 1 - 75
budget
integer | null

Budget amount for each budgetPeriod, or for the whole campaign when budgetPeriod is total, in minor units of the account currency according to ISO 4217. It is distributed across marketplaces.

Rango requerido: 0 < x < 20000000000
targets
PublicUpdateTargets · object | null

Targets to be included or removed from the campaign

startDate
string<date-time> | null

New date when the campaign starts, specified in RFC 3339. Must be in the future and include the Timezone definition. If not set, the start date does not change.

endDate
string<date-time> | null

New date when the campaign stops, specified in RFC 3339. Must be in the future, greater than the start date, and include the Timezone definition. If not set, the end date does not change.

targetRoas
number | null

Target ROAS for the campaign

Rango requerido: 0.5 <= x <= 20
isActive
boolean | null

Flag to indicate if the campaign is active or not

Respuesta

Successful Response

Represents a public version of an agency campaign, used in API responses.

id
string<uuid>
requerido

Internal identifier for the agency campaign

name
string
requerido

Campaign name

adFormat
enum<string>
requerido

The ad format for this campaign

Opciones disponibles:
banner,
listing
chargeType
enum<string>
requerido

The charge type for this campaign, derived from adFormat

Opciones disponibles:
CPC,
CPM
accountId
string<uuid>
requerido

Account that owns this campaign

budget
integer
requerido

Budget amount for each budgetPeriod, or for the whole campaign when budgetPeriod is total, in minor units of currencyCode.

budgetPeriod
enum<string>
requerido

The periodicity of the budget

Opciones disponibles:
daily,
weekly,
monthly,
total
startDate
string<date-time>
requerido

Date when the campaign starts, specified in RFC 3339. Must include the Timezone definition.

endDate
string<date-time>
requerido

Date when the campaign ends, specified in RFC 3339. Must include the Timezone definition.

targetRoas
number
requerido

Target ROAS for the campaign

Rango requerido: 0.5 <= x <= 20
currencyCode
string
requerido

Currency code this campaign is working with in ISO 4217 format

Ejemplo:

"USD"

isActive
boolean
requerido

Flag to indicate if the campaign is active or not

createdAt
string<date-time>
requerido

Date and time when the campaign was created

bidCount
integer | null

Bid count for the campaign (optional)